Skip to content

feat: add getHead, setHead methods on Repository class#29

Merged
seokju-na merged 3 commits intomainfrom
repo-head
Jan 28, 2025
Merged

feat: add getHead, setHead methods on Repository class#29
seokju-na merged 3 commits intomainfrom
repo-head

Conversation

@seokju-na
Copy link
Collaborator

Usage:

import { openRepository } from 'es-git';

const repo = await openRepository('...');
repo.getHead().name(); // refs/heads/main
repo.setHead('refs/heads/other');

@seokju-na seokju-na merged commit 45054ce into main Jan 28, 2025
18 checks passed
@seokju-na seokju-na deleted the repo-head branch January 28, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant